import {TASK_FINAL} from '@/services/api'
import {request, METHOD} from '@/utils/request'

export async function listTaskFinalWorkloadVOByPage(currentPage, size) {
    return request(TASK_FINAL+"/page", METHOD.GET, {
        currentPage: currentPage,
        size: size
    })
}

export async function totalTaskFinalWorkloadVO() {
    return request(TASK_FINAL+"/total", METHOD.GET)
}

export async function saveTaskFinal() {
    return request(TASK_FINAL, METHOD.POST)
}



export async function listTaskFinalVOByTeacher(name, semester) {
    return request(TASK_FINAL, METHOD.GET, {
        name: name,
        semester: semester
    })
}

export async function proposalTeacher(courseName) {
    return request(TASK_FINAL+'/proposal', METHOD.GET, {
        courseName: courseName
    })
}

